<script type="text/javascript" src="portalMedia.js"></script>
<script type="text/javascript" src="ajaxupload.js"></script>
<?php
if ($userlevel > 0){
	
	echo "<div id=\"mediaBar\">";
		echo "<p class='portalMediaBarText'><button id='uploadMedia' class='mediaBarButton'>$nls_upload_media</button></p>";
	echo "</div>";
	
}
?>

<div id="mediaRoll"></div>
<div class="divDialog" id="mediaPreview" title="<?php echo $nls_preview;?>"></div>
<div id='mediaUploadDialog' class='divDialog' title="<?php echo $nls_upload_media;?>">
	<p class="hiddenRow" id='noDataToUpload'>
		Keine angegeben Daten und so...
	</p>
	<form  id="uploadMediaForm" action="../controller/storeMedia.php" method="POST" enctype="multipart/form-data">
	<table>
		<!--<tr>
			<td><?php echo $nls_upload_file ;?></td>
			<td><input name="newfile" id="newfile" type="file"  /></td>
		</tr>-->
		<tr>
			<td><?php echo $nls_modality;?></td>
			<td><select name="modality" id="modality">
			<option selected></option>
			<option>AU</option>
			<option>BI</option>
			<option>CD</option>
			<option>CR</option>
			<option>CT</option>
			<option>DD</option>
			<option>CG</option>
			<option>DX</option>
			<option>IO</option>
			<option>IVUS</option>
			<option>ECG</option>
			<option>EPS</option>
			<option>ES</option>
			<option>HD</option>
			<option>LS</option>
			<option>MR</option>
			<option>MG</option>
			<option>NM</option>
			<option>OT</option>
			<option>PT</option>
			<option>PX</option>
			<option>TG</option>
			<option>RF</option>
			<option>RTDOSE</option>
			<option>RTIMAGE</option>
			<option>RTPLAN</option>
			<option>RTSTRUCT</option>
			<option>ST</option>
			<option>US</option>
			<option>XA</option>
		</select></td>
		</tr>
		<tr>
			<td><?php echo $nls_organ;?></td>
			<td><select name="organ" id="organ">
			<option selected></option>
			<option>HEAD</option>
			<option>SKULL</option>
			<option>CSPINE</option>	
			<option>TSPINE</option>
			<option>LSPINE</option>
			<option>SSPINE</option>
			<option>COCCYX</option>
			<option>CHEST</option>
			<option>CLAVICLE</option>
			<option>BREAST</option>
			<option>ABDOMEN</option>
			<option>PELVIS</option>
			<option>HIP</option>
			<option>SHOULDER</option>
			<option>ELBOW</option>
			<option>KNEE</option>
			<option>ANKLE</option>
			<option>HAND</option>
			<option>FOOT</option>
			<option>FINGER</option>
			<option>EXTREMITY</option>
		</select></td>
		</tr>
		<tr>
			<td><?php echo $nls_tags;?></td>
			<td><input type="text" id="tags" name="tags"/></td>
		</tr>
	</table>
	<br/>
	<input type="button" class="mediaUploadSubmit" name="submit" id="submit" value="<?php echo $nls_upload_file;?>" />
	<input type="hidden" name="user" value="<?php echo $_SESSION['userid'];?>" />
	</form>
	<div id="uploadWaitGrafic">
		<img src="./themes/lib/waitUpload.gif" alt="Wait for upload..."/>
	</div>
</div>
<div id="dataUpload1" class="divDialog"><?php echo $nls_noMediaSelected;?></div>
<div id="dataUpload2" class="divDialog"><?php echo $nls_noModalitySelected;?></div>
<div id="dataUpload3" class="divDialog"><?php echo $nls_noOrganSelected;?></div>
<div id="dataUpload4" class="divDialog"><?php echo $nls_noTags;?></div>
<!--<div id="mediaView"></div>-->